import request from '@/utils/request'

// 查询标准规范附件列表
export function listStandattach(query) {
  return request({
    url: '/kno/standattach/list',
    method: 'get',
    params: query
  })
}

// 查询标准规范附件详细
export function getStandattach(stdattachid) {
  return request({
    url: '/kno/standattach/' + stdattachid,
    method: 'get'
  })
}

// 新增标准规范附件
export function addStandattach(data) {
  return request({
    url: '/kno/standattach',
    method: 'post',
    data: data
  })
}

// 修改标准规范附件
export function updateStandattach(data) {
  return request({
    url: '/kno/standattach',
    method: 'put',
    data: data
  })
}

// 删除标准规范附件
export function delStandattach(stdattachid) {
  return request({
    url: '/kno/standattach/' + stdattachid,
    method: 'delete'
  })
}
